import 'package:flutter/cupertino.dart';

class Spacing {
  /// 水平间隔
  static const Widget hSpacing2 = SizedBox(width: 2);
  static const Widget hSpacing4 = SizedBox(width: 4);
  static const Widget hSpacing6 = SizedBox(width: 6);
  static const Widget hSpacing8 = SizedBox(width: 8);
  static const Widget hSpacing10 = SizedBox(width: 10);
  static const Widget hSpacing12 = SizedBox(width: 12);
  static const Widget hSpacing14 = SizedBox(width: 14);
  static const Widget hSpacing16 = SizedBox(width: 16);
  static const Widget hSpacing18 = SizedBox(width: 18);
  static const Widget hSpacing20 = SizedBox(width: 20);
  static const Widget hSpacing22 = SizedBox(width: 22);
  static const Widget hSpacing24 = SizedBox(width: 24);
  static const Widget hSpacing32 = SizedBox(width: 32);
  static const Widget hSpacing60 = SizedBox(width: 60);

  /// 垂直间隔
  static const Widget vSpacing2 = SizedBox(height: 2);
  static const Widget vSpacing4 = SizedBox(height: 4);
  static const Widget vSpacing6 = SizedBox(height: 6);
  static const Widget vSpacing8 = SizedBox(height: 8);
  static const Widget vSpacing10 = SizedBox(height: 10);
  static const Widget vSpacing12 = SizedBox(height: 12);
  static const Widget vSpacing14 = SizedBox(height: 14);
  static const Widget vSpacing16 = SizedBox(height: 16);
  static const Widget vSpacing18 = SizedBox(height: 18);
  static const Widget vSpacing20 = SizedBox(height: 20);
  static const Widget vSpacing22 = SizedBox(height: 22);
  static const Widget vSpacing24 = SizedBox(height: 24);
  static const Widget vSpacing32 = SizedBox(height: 32);
  static const Widget vSpacing40 = SizedBox(height: 40);
  static const Widget vSpacing60 = SizedBox(height: 60);

  /// 自定义水平间距
  static hSpacing(double w) {
    return SizedBox(width: w);
  }

  /// 自定义垂直间距
  static vSpacing(double h) {
    return SizedBox(height: h);
  }

  static const Widget empty = SizedBox.shrink();
}
